﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using CanDoo.Core;
using CanDoo.Data;
using CanDoo.Contracts;
using CanDoo.Oil.Core.Models;
using CanDoo.Oil.Core.DTOs;
using CanDoo.Core.Data;

namespace CanDoo.Oil.Core.Contracts
{
    /// <summary>
    /// 业务契约——客户退货单
    /// </summary>
    public interface IOutSellBackContract : IServiceBaseCore<OutSellBack>, IServiceBase<OutSellBack>
    {
        /// <summary>
        /// 生成新单据号
        /// </summary>
        /// <returns></returns>
        string GetNewCode();

        /// <summary>ProductItem
        /// 实体转换为Dto
        /// </summary>
        /// <param name="m"></param>
        /// <returns></returns>
        ProductItem EntityChange(OutSellBackDetail m);

        /// <summary>
        /// PDA通过Code获取采购入库单信息
        /// </summary>
        /// <param name="Code"></param>
        /// <returns></returns>
        OrderApiDto SendPDAInfo(string Code);

        /// <summary>
        /// PDA上传序列号
        /// </summary>
        /// <param name="orderApiDto"></param>
        /// <returns></returns>
        OperationResult GetPDAData(OrderApiDto orderApiDto);
    }
}

